/*
滚动文件日志
*/

#pragma once

#include "file_loger.hpp"

namespace lxz
{
    class roll_file_loger : public file_loger
    {
    public:
        roll_file_loger();
        ~roll_file_loger();

        virtual int32_t init(log_level level, const char *file) override;

    protected:
        virtual void flush(void) override;
    private:
        const long bytes_max_;
    };
}